package com.guigu.ssyx.activity.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.atguigu.ssyx.model.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 优惠规则
 * </p>
 *
 * @author liuyang
 * @since 2025-09-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("activity_rule")
@ApiModel(value="ActivityRule对象", description="优惠规则")
public class ActivityRule extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "类型")
    @TableField("activity_id")
    private Integer activityId;

    @ApiModelProperty(value = "活动类型（1：满减，2：折扣）")
    @TableField("activity_type")
    private Integer activityType;

    @ApiModelProperty(value = "满减金额")
    @TableField("condition_amount")
    private BigDecimal conditionAmount;

    @ApiModelProperty(value = "满减件数")
    @TableField("condition_num")
    private Long conditionNum;

    @ApiModelProperty(value = "优惠金额")
    @TableField("benefit_amount")
    private BigDecimal benefitAmount;

    @ApiModelProperty(value = "优惠折扣")
    @TableField("benefit_discount")
    private BigDecimal benefitDiscount;


}
